public class GasolineCarAdapter implements IElectricCar {
    private IGasolineCar gasolineCar;

    public GasolineCarAdapter(IGasolineCar gasolineCar) {
        this.gasolineCar = gasolineCar;
    }

    @Override
    public void rechargeBattery() {

        System.out.println("汽油车通过适配器转换为电能...");
        gasolineCar.fillGasoline(); // 假设加油就等同于“充电”
        System.out.println("汽油车已准备好使用电能...");
    }
}